package com.aaa.service;

import com.aaa.dao.FuserDao;
import com.aaa.entity.FUser;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class FuserService implements FuserDao {
    @Resource
    FuserDao fuserDao;
    @Override
    public List<FUser> selectByNP(FUser fUser) {
        return fuserDao.selectByNP(fUser);
    }

    @Override
    public Integer updateP(FUser fUser) {
        return fuserDao.updateP(fUser);
    }

    @Override
    public Integer updateSelf(FUser fUser) {
        return fuserDao.updateSelf(fUser);
    }

    @Override
    public Integer updatePhone(FUser fUser) {
        return fuserDao.updatePhone(fUser);
    }

    public List<FUser> select(Integer pageCode,Integer pageSize,FUser fUser) {
        Integer a=(pageCode-1)*pageSize;
        return fuserDao.select(a, pageSize, fUser);
    }

    public Integer updateS(FUser f_user) {
        return fuserDao.updateS(f_user);
    }
}
